function sign(e) {
    function t(e, t) {
        return e << t | e >>> 32 - t
    }
    function n(e, t) {
        var n, r, o, i, a;
        return o = 2147483648 & e,
        i = 2147483648 & t,
        a = (1073741823 & e) + (1073741823 & t),
        (n = 1073741824 & e) & (r = 1073741824 & t) ? 2147483648 ^ a ^ o ^ i : n | r ? 1073741824 & a ? 3221225472 ^ a ^ o ^ i : 1073741824 ^ a ^ o ^ i : a ^ o ^ i
    }
    function r(e, r, o, i, a, c, s) {
        return e = n(e, n(n(function(e, t, n) {
            return e & t | ~e & n
        }(r, o, i), a), s)),
        n(t(e, c), r)
    }
    function o(e, r, o, i, a, c, s) {
        return e = n(e, n(n(function(e, t, n) {
            return e & n | t & ~n
        }(r, o, i), a), s)),
        n(t(e, c), r)
    }
    function i(e, r, o, i, a, c, s) {
        return e = n(e, n(n(function(e, t, n) {
            return e ^ t ^ n
        }(r, o, i), a), s)),
        n(t(e, c), r)
    }
    function a(e, r, o, i, a, c, s) {
        return e = n(e, n(n(function(e, t, n) {
            return t ^ (e | ~n)
        }(r, o, i), a), s)),
        n(t(e, c), r)
    }
    function c(e) {
        var t, n = "", r = "";
        for (t = 0; 3 >= t; t++)
            n += (r = "0" + (e >>> 8 * t & 255).toString(16)).substr(r.length - 2, 2);
        return n
    }
    var s, l, u, d, p, f, m, h, g, y;
    for (y = function(e) {
        for (var t, n = e.length, r = n + 8, o = 16 * ((r - r % 64) / 64 + 1), i = new Array(o - 1), a = 0, c = 0; n > c; )
            a = c % 4 * 8,
            i[t = (c - c % 4) / 4] = i[t] | e.charCodeAt(c) << a,
            c++;
        return a = c % 4 * 8,
        i[t = (c - c % 4) / 4] = i[t] | 128 << a,
        i[o - 2] = n << 3,
        i[o - 1] = n >>> 29,
        i
    }(e = function(e) {
        e = e.replace(/\r\n/g, "\n");
        for (var t = "", n = 0; n < e.length; n++) {
            var r = e.charCodeAt(n);
            128 > r ? t += String.fromCharCode(r) : r > 127 && 2048 > r ? (t += String.fromCharCode(r >> 6 | 192),
            t += String.fromCharCode(63 & r | 128)) : (t += String.fromCharCode(r >> 12 | 224),
            t += String.fromCharCode(r >> 6 & 63 | 128),
            t += String.fromCharCode(63 & r | 128))
        }
        return t
    }(e)),
    f = 1732584193,
    m = 4023233417,
    h = 2562383102,
    g = 271733878,
    s = 0; s < y.length; s += 16)
        l = f,
        u = m,
        d = h,
        p = g,
        f = r(f, m, h, g, y[s + 0], 7, 3614090360),
        g = r(g, f, m, h, y[s + 1], 12, 3905402710),
        h = r(h, g, f, m, y[s + 2], 17, 606105819),
        m = r(m, h, g, f, y[s + 3], 22, 3250441966),
        f = r(f, m, h, g, y[s + 4], 7, 4118548399),
        g = r(g, f, m, h, y[s + 5], 12, 1200080426),
        h = r(h, g, f, m, y[s + 6], 17, 2821735955),
        m = r(m, h, g, f, y[s + 7], 22, 4249261313),
        f = r(f, m, h, g, y[s + 8], 7, 1770035416),
        g = r(g, f, m, h, y[s + 9], 12, 2336552879),
        h = r(h, g, f, m, y[s + 10], 17, 4294925233),
        m = r(m, h, g, f, y[s + 11], 22, 2304563134),
        f = r(f, m, h, g, y[s + 12], 7, 1804603682),
        g = r(g, f, m, h, y[s + 13], 12, 4254626195),
        h = r(h, g, f, m, y[s + 14], 17, 2792965006),
        f = o(f, m = r(m, h, g, f, y[s + 15], 22, 1236535329), h, g, y[s + 1], 5, 4129170786),
        g = o(g, f, m, h, y[s + 6], 9, 3225465664),
        h = o(h, g, f, m, y[s + 11], 14, 643717713),
        m = o(m, h, g, f, y[s + 0], 20, 3921069994),
        f = o(f, m, h, g, y[s + 5], 5, 3593408605),
        g = o(g, f, m, h, y[s + 10], 9, 38016083),
        h = o(h, g, f, m, y[s + 15], 14, 3634488961),
        m = o(m, h, g, f, y[s + 4], 20, 3889429448),
        f = o(f, m, h, g, y[s + 9], 5, 568446438),
        g = o(g, f, m, h, y[s + 14], 9, 3275163606),
        h = o(h, g, f, m, y[s + 3], 14, 4107603335),
        m = o(m, h, g, f, y[s + 8], 20, 1163531501),
        f = o(f, m, h, g, y[s + 13], 5, 2850285829),
        g = o(g, f, m, h, y[s + 2], 9, 4243563512),
        h = o(h, g, f, m, y[s + 7], 14, 1735328473),
        f = i(f, m = o(m, h, g, f, y[s + 12], 20, 2368359562), h, g, y[s + 5], 4, 4294588738),
        g = i(g, f, m, h, y[s + 8], 11, 2272392833),
        h = i(h, g, f, m, y[s + 11], 16, 1839030562),
        m = i(m, h, g, f, y[s + 14], 23, 4259657740),
        f = i(f, m, h, g, y[s + 1], 4, 2763975236),
        g = i(g, f, m, h, y[s + 4], 11, 1272893353),
        h = i(h, g, f, m, y[s + 7], 16, 4139469664),
        m = i(m, h, g, f, y[s + 10], 23, 3200236656),
        f = i(f, m, h, g, y[s + 13], 4, 681279174),
        g = i(g, f, m, h, y[s + 0], 11, 3936430074),
        h = i(h, g, f, m, y[s + 3], 16, 3572445317),
        m = i(m, h, g, f, y[s + 6], 23, 76029189),
        f = i(f, m, h, g, y[s + 9], 4, 3654602809),
        g = i(g, f, m, h, y[s + 12], 11, 3873151461),
        h = i(h, g, f, m, y[s + 15], 16, 530742520),
        f = a(f, m = i(m, h, g, f, y[s + 2], 23, 3299628645), h, g, y[s + 0], 6, 4096336452),
        g = a(g, f, m, h, y[s + 7], 10, 1126891415),
        h = a(h, g, f, m, y[s + 14], 15, 2878612391),
        m = a(m, h, g, f, y[s + 5], 21, 4237533241),
        f = a(f, m, h, g, y[s + 12], 6, 1700485571),
        g = a(g, f, m, h, y[s + 3], 10, 2399980690),
        h = a(h, g, f, m, y[s + 10], 15, 4293915773),
        m = a(m, h, g, f, y[s + 1], 21, 2240044497),
        f = a(f, m, h, g, y[s + 8], 6, 1873313359),
        g = a(g, f, m, h, y[s + 15], 10, 4264355552),
        h = a(h, g, f, m, y[s + 6], 15, 2734768916),
        m = a(m, h, g, f, y[s + 13], 21, 1309151649),
        f = a(f, m, h, g, y[s + 4], 6, 4149444226),
        g = a(g, f, m, h, y[s + 11], 10, 3174756917),
        h = a(h, g, f, m, y[s + 2], 15, 718787259),
        m = a(m, h, g, f, y[s + 9], 21, 3951481745),
        f = n(f, l),
        m = n(m, u),
        h = n(h, d),
        g = n(g, p);
    return (c(f) + c(m) + c(h) + c(g)).toLowerCase()
}



l = sign(
    'b8c9a0be8b64a4ba992373a2fb96dfe1&1734665383026&12574478&{"id":"826747178455","detail_v":"3.3.2","exParams":"{\\"id\\":\\"826747178455\\",\\"sid\\":\\"a8c24d59061e76140921dd4fbde0ada2\\",\\"spm\\":\\"a21jn4.26183572.srplist.2.5e3f523cMr2S1o\\",\\"ttid\\":\\"600000@taobao_android_10.7.0\\",\\"queryParams\\":\\"id=826747178455&sid=a8c24d59061e76140921dd4fbde0ada2&spm=a21jn4.26183572.srplist.2.5e3f523cMr2S1o&ttid=600000%40taobao_android_10.7.0\\",\\"domain\\":\\"https://detail.tmall.com\\",\\"path_name\\":\\"/item.htm\\"}"}'

)

'b8c9a0be8b64a4ba992373a2fb96dfe1&1734665383026&12574478&{"id":"826747178455","detail_v":"3.3.2","exParams":"{\\"id\\":\\"826747178455\\",\\"sid\\":\\"a8c24d59061e76140921dd4fbde0ada2\\",\\"spm\\":\\"a21jn4.26183572.srplist.2.5e3f523cMr2S1o\\",\\"ttid\\":\\"600000@taobao_android_10.7.0\\",\\"queryParams\\":\\"id=826747178455&sid=a8c24d59061e76140921dd4fbde0ada2&spm=a21jn4.26183572.srplist.2.5e3f523cMr2S1o&ttid=600000%40taobao_android_10.7.0\\",\\"domain\\":\\"https://detail.tmall.com\\",\\"path_name\\":\\"/item.htm\\"}"}'

console.log(l)

function cainiaoguoguosign(i,data){
    
    b = '40146bfa09ed6ec98ac326dfd0d975f0&'+i+'&12574478&{"mailNo":"'+data+'","orderCode":"","cpCode":"","appName":"GUOGUO","actor":"RECEIVER","isAccoutOut":true,"isShowConsignDetail":true,"ignoreInvalidNode":true,"isUnique":true,"isStandard":true,"isShowItem":true,"isShowTemporalityService":true,"isShowCommonService":true,"isStandardActionCode":true,"isOrderByAction":true,"isShowExpressMan":true,"isShowProgressbar":true,"isShowLastOneService":true,"isShowServiceProvider":true,"isShowDeliveryProgress":true}'
    l = sign(b)
    return l
}

function taobao_serach(i,data){
    
    b = '40146bfa09ed6ec98ac326dfd0d975f0&'+i+'&12574478&{"mailNo":"'+data+'","orderCode":"","cpCode":"","appName":"GUOGUO","actor":"RECEIVER","isAccoutOut":true,"isShowConsignDetail":true,"ignoreInvalidNode":true,"isUnique":true,"isStandard":true,"isShowItem":true,"isShowTemporalityService":true,"isShowCommonService":true,"isStandardActionCode":true,"isOrderByAction":true,"isShowExpressMan":true,"isShowProgressbar":true,"isShowLastOneService":true,"isShowServiceProvider":true,"isShowDeliveryProgress":true}'
    
    '67ee16d7ecc4ebb39c1083a01886a448&1740650783987&12574478&{"appId":"34385","params":"{\\"device\\":\\"HMA-AL00\\",\\"isBeta\\":\\"false\\",\\"grayHair\\":\\"false\\",\\"from\\":\\"nt_history\\",\\"brand\\":\\"HUAWEI\\",\\"info\\":\\"wifi\\",\\"index\\":\\"4\\",\\"rainbow\\":\\"\\",\\"schemaType\\":\\"auction\\",\\"elderHome\\":\\"false\\",\\"isEnterSrpSearch\\":\\"true\\",\\"newSearch\\":\\"false\\",\\"network\\":\\"wifi\\",\\"subtype\\":\\"\\",\\"hasPreposeFilter\\":\\"false\\",\\"prepositionVersion\\":\\"v2\\",\\"client_os\\":\\"Android\\",\\"gpsEnabled\\":\\"false\\",\\"searchDoorFrom\\":\\"srp\\",\\"debug_rerankNewOpenCard\\":\\"false\\",\\"homePageVersion\\":\\"v7\\",\\"searchElderHomeOpen\\":\\"false\\",\\"search_action\\":\\"initiative\\",\\"sugg\\":\\"_4_1\\",\\"sversion\\":\\"13.6\\",\\"style\\":\\"list\\",\\"ttid\\":\\"600000@taobao_pc_10.7.0\\",\\"needTabs\\":\\"true\\",\\"areaCode\\":\\"CN\\",\\"vm\\":\\"nw\\",\\"countryNum\\":\\"156\\",\\"m\\":\\"pc\\",\\"page\\":2,\\"n\\":48,\\"q\\":\\"%E7%8E%89%E7%B1%B3%E5%A4%B9\\",\\"qSource\\":\\"manual\\",\\"pageSource\\":\\"a21bo.jianhua/a.201856.d13_manual\\",\\"tab\\":\\"all\\",\\"pageSize\\":\\"48\\",\\"totalPage\\":\\"100\\",\\"totalResults\\":\\"22162\\",\\"sourceS\\":\\"0\\",\\"sort\\":\\"_coefp\\",\\"bcoffset\\":\\"-3\\",\\"ntoffset\\":\\"10\\",\\"filterTag\\":\\"\\",\\"service\\":\\"\\",\\"prop\\":\\"\\",\\"loc\\":\\"\\",\\"start_price\\":null,\\"end_price\\":null,\\"startPrice\\":null,\\"endPrice\\":null,\\"categoryp\\":\\"\\",\\"ha3Kvpairs\\":null,\\"myCNA\\":\\"jQlvHlAou0ICAW65qsswZkqr\\"}"}'
    l = sign(b)
    return l
}












